import logging

def log():
    log = logging.basicConfig(level=logging.INFO,
                        filemode='w',
                        filename='api_test.log',
                        format='%(levelname)s %(asctime)s %(message)s %(filename)s %(lineno)d')

    return log
